<extend name="Public:base"/>

<block name="body">
<h2>Login</h2>
<div class="row">
<div class="col-md-4">
<form method="post" action="{:U('User/login')}">
    <div class="form-group">
        <label for="username">Username / Email / Phone</label>
        <input type="text" class="form-control" id="username" name="username" placeholder="Username/Email/Phone" />
    </div>
    <div class="form-group">
        <label for="password">Password</label>
        <input type="password" class="form-control" id="password" name="password" />
    </div>
    <div class="checkbox">
        <label>
            <input type="checkbox" name="remember" value="true">Remember me for 30 Days
        </label>
    </div>
    <?php if (isset($errmsg)): ?>
    <div class="alert alert-danger" role="alert">{$errmsg}</div>
    <?php endif; ?>
    <?php if (isset($successinfo)): ?>
    <div class="alert alert-success" role="alert">{$successinfo}</div>
    <?php endif; ?>
    <button type="submit" class="btn btn-primary">Login</button>
    <a href="{:U('User/register')}" class="btn btn-default">Or SignUp?</a>
</form>
</div>
</div>
</block>
